//
// Created by Linngdu664 on 2022/9/18.
//
#include <iostream>
#include "List.h"

int main() {
    /**
     * ��һ��
     */
    List *list = new List();
    list->insert(9)->insert(1)->insert(6)->insert(2)->insert(4)->insert(7);
    list->print();

    /**
     * �ڶ���
     */
    list->reversal();
    list->print();

    /**
     * ������
     */
    List *list1 = (new List())->insert(1)->insert(2)->insert(4)->insert(6)->insert(7)->insert(9);
    List *list2 = (new List())->insert(2)->insert(3)->insert(5)->insert(8)->insert(10)->insert(11);
    list1->reversalAdd(list2);
    list1->print();
}
